﻿using Rsd.Dudu.ModelProvider;
using Rsd.Faith.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Rsd.Faith.Models
{
   
    /// <summary>
    /// 存款计划息表
    /// </summary>
    [Table("bank_存款计划息表", "bank__cun_kuan_ji_hua", "id")]
    [Serializable]
    public class BankCunKuanJiHuaModel : Rsd.Faith.Core.ModelBase
    {

        /// <summary>
        /// 所属期
        /// </summary>
        [StringType("suo_shu_qi", "所属期", 22, 255)]
        [DisplayName("所属期")]
        public string SuoShuQi { get; set; }

        /// <summary>
        /// 开始日期
        /// </summary>
        [DateTimeFormat("yyyy-MM-dd")]
        [DateTimeType("kai_shi_ri_qi", "开始日期", 23, 3)]
        [DisplayName("开始日期")]
        public DateTime KaiShiRiQi { get; set; }

        /// <summary>
        /// 结束日期 
        /// </summary>
        [DateTimeFormat("yyyy-MM-dd")]
        [DateTimeType("jie_shu_ri_qi", "结束日期", 24, 3)]
        [DisplayName("结束日期")]
        public DateTime JieShuRiQi { get; set; }

        /// <summary>
        /// 定期年利率
        /// </summary>
        [NumericType("ding_qi_li_lv", "定期年利率", 26, 10, 3)]
        [DisplayName("定期年利率")]
        public decimal DingQiLiLv { get; set; }

        /// <summary>
        /// 活期年利率
        /// </summary>
        [NumericType("huo_qi_li_lv", "活期年利率", 28, 10, 3)]
        [DisplayName("活期年利率")]
        public decimal HuoQiLiLv { get; set; }

        /// <summary>
        /// 定存比例(%)
        /// </summary>
        [IntegerType("ding_cun_bi_li", "定存比例(%)", 30, 10, 80)]
        [DisplayName("定存比例(%)")]
        public int DingCunBiLi { get; set; }

        /// <summary>
        /// 应结利息
        /// </summary>
        [NumericType("ying_jie_li_xi", "应结利息", 32, 20, 2)]
        [DisplayName("应结利息")]
        public decimal YingJieLiXi { get; set; }

        /// <summary>
        /// 已结利息
        /// </summary>
        [NumericType("yi_jie_li_xi", "已结利息", 34, 20, 2)]
        [DisplayName("已结利息")]
        public decimal YiJieLiXi { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [StringType("zhuang_tai", "状态", 40, 10, "DJ")]
        [DisplayName("状态")]
        public CunKuanZhuangTai ZhuangTai { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public BankCunKuanJiHuaModel()
        { }

    }
}
